import Index from '../src/pages/Index/page.vue';
import Login from '../src/pages/Login/page.vue';

// 账单管理
const AccountsManage = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/AccountsManage/page.vue')

// 雇员管理
const EmployeeManage = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/EmployeeManage/page.vue')

// 发票申请
const InvoiceApplication = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/InvoiceApplication/page.vue')

// 发票查询
const InvoiceInquiry = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/InvoiceInquiry/page.vue')

// 新增结算
const SettleAccountsAdd = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/SettleAccountsAdd/page.vue')

// 结算列表
const SettleAccountsList = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/SettleAccountsList/page.vue')

// 结算管理
const SettleAccountsManage = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/SettleAccountsManage/page.vue')

export const pages = [
    {
        path: '/',
        name: 'login',
        title: '登录',
        component: Login
    },
    {
        path: '/index',
        name: '首页',
        component: Index,
        title: '首页',
        children: [
            {
                path: '/accountsManage',
                name: '账单管理',
                component: AccountsManage
            },
            {
                path: '/employeeManage',
                name: '雇员管理',
                component: EmployeeManage
            },
            {
                path: '/invoiceApplication',
                name: '发票申请',
                component: InvoiceApplication
            },
            {
                path: '/invoiceInquiry',
                name: '发票查询',
                component: InvoiceInquiry
            },
            {
                path: '/settleAccountsAdd',
                name: '新增结算',
                component: SettleAccountsAdd
            },
            {
                path: '/sttleAccountsList',
                name: '结算列表',
                component: SettleAccountsList
            },
            {
                path: '/settleAccountsManage',
                name: '结算管理',
                component: SettleAccountsManage
            },
        ]
    }
]

export default {
  pages
}
